﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using VINETLIFE.DO;
using VINETLIFE.BL;

namespace VINETLIFE
{
    public partial class Default_old : System.Web.UI.Page
    {
        sysConfigDO config = new sysConfigDO();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //SEO
                Page.Title =  Ultility.WebTitle();

                sysConfigDO objConfig = new sysConfigDO();
                objConfig.ConfigID = 2;

                objConfig = new sysConfigBL().Select(objConfig);


                HtmlMeta metaKey = new HtmlMeta();
                metaKey.Name = "keywords";
                metaKey.Content = objConfig.ConfigValue;
                Page.Header.Controls.Add(metaKey);


                objConfig.ConfigID = 3;
                objConfig = new sysConfigBL().Select(objConfig);
                HtmlMeta metaDesc = new HtmlMeta();
                metaDesc.Name = "description";
                metaDesc.Content = objConfig.ConfigValue;
                Page.Header.Controls.Add(metaDesc);
                config.ConfigID = 33;
                config = new sysConfigBL().Select(config);

                if (config.IsActive == true)
                {
                    popup1.Visible = true;
                }
            }
        }
    }
}